package net.lainiao.morethread.Chapter2.demo3;

/**
 * Created by Administrator on 2017/2/28.
 */
public class Main {
    public static void main(String[] args) {
        EventStore store=new EventStore();
        Producer producer=new Producer(store);
        Cusumer cusumer=new Cusumer(store);
        Thread th1=new Thread(producer);
        Thread th2=new Thread(cusumer);
        th1.start();
        th2.start();

    }
}
